package com.geper.pattern.decorator;

import java.util.List;

/**
 * @author: lsy
 * @date: 2020-03-06 15:24
 * @description: Test
 */
public class Test {

    public static void main(String[] args) {
        Navigation navigation = new UnLoginMenuDecorator();

        List<String> unLogin = navigation.menus();

        System.out.println("未登录:"+unLogin.toString());
        navigation = new LoginDecorator(navigation);
        List<String> login = navigation.menus();
        System.out.println("已登录:"+login.toString());

    }
}
